from ronglian_sms_sdk import SmsSDK

accId = '2c94811c946f6bfb0196a4504d0d692f'
accToken = 'ad628216bdb344b4bf5e32b899284158'
appId = '2c94811c946f6bfb0196a4504ea26936'

def send_message(phone, code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = phone
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp
